3.6.49 \(\int \frac {\tan ^2(c+d x)}{(a+b \tan (c+d x))^{5/2}} \, dx\) [549]
Optimal. Leaf size=157 \[ \frac {i \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a-i b}}\right )}{(a-i b)^{5/2} d}-\frac {i \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a+i b}}\right )}{(a+i b)^{5/2} d}-\frac {2 a^2}{3 b \left (a^2+b^2\right ) d (a+b \tan (c+d x))^{3/2}}+\frac {4 a b}{\left (a^2+b^2\right )^2 d \sqrt {a+b \tan (c+d x)}} \]
[Out]
I*arctanh((a+b*tan(d*x+c))^(1/2)/(a-I*b)^(1/2))/(a-I*b)^(5/2)/d-I*arctanh((a+b*tan(d*x+c))^(1/2)/(a+I*b)^(1/2)
)/(a+I*b)^(5/2)/d+4*a*b/(a^2+b^2)^2/d/(a+b*tan(d*x+c))^(1/2)-2/3*a^2/b/(a^2+b^2)/d/(a+b*tan(d*x+c))^(3/2)
________________________________________________________________________________________
Rubi [A]
time = 0.22, antiderivative size = 157, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3623, 3610,
3620, 3618, 65, 214} \begin {gather*} -\frac {2 a^2}{3 b d \left (a^2+b^2\right ) (a+b \tan (c+d x))^{3/2}}+\frac {4 a b}{d \left (a^2+b^2\right )^2 \sqrt {a+b \tan (c+d x)}}+\frac {i \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a-i b}}\right )}{d (a-i b)^{5/2}}-\frac {i \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a+i b}}\right )}{d (a+i b)^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
Int[Tan[c + d*x]^2/(a + b*Tan[c + d*x])^(5/2),x]
[Out]
(I*ArcTanh[Sqrt[a + b*Tan[c + d*x]]/Sqrt[a - I*b]])/((a - I*b)^(5/2)*d) - (I*ArcTanh[Sqrt[a + b*Tan[c + d*x]]/
Sqrt[a + I*b]])/((a + I*b)^(5/2)*d) - (2*a^2)/(3*b*(a^2 + b^2)*d*(a + b*Tan[c + d*x])^(3/2)) + (4*a*b)/((a^2 +
b^2)^2*d*Sqrt[a + b*Tan[c + d*x]])
Rule 65
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]
Rule 214
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x/Rt[-a/b, 2]], x] /; FreeQ[{a, b},
x] && NegQ[a/b]
Rule 3610
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(b
*c - a*d)*((a + b*Tan[e + f*x])^(m + 1)/(f*(m + 1)*(a^2 + b^2))), x] + Dist[1/(a^2 + b^2), Int[(a + b*Tan[e +
f*x])^(m + 1)*Simp[a*c + b*d - (b*c - a*d)*Tan[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c
- a*d, 0] && NeQ[a^2 + b^2, 0] && LtQ[m, -1]
Rule 3618
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c*(
d/f), Subst[Int[(a + (b/d)*x)^m/(d^2 + c*x), x], x, d*Tan[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, m}, x] &&
NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && EqQ[c^2 + d^2, 0]
Rule 3620
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[(c
+ I*d)/2, Int[(a + b*Tan[e + f*x])^m*(1 - I*Tan[e + f*x]), x], x] + Dist[(c - I*d)/2, Int[(a + b*Tan[e + f*x]
)^m*(1 + I*Tan[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0]
&& NeQ[c^2 + d^2, 0] && !IntegerQ[m]
Rule 3623
Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)])^2, x_Symbol] :> Simp[
(b*c - a*d)^2*((a + b*Tan[e + f*x])^(m + 1)/(b*f*(m + 1)*(a^2 + b^2))), x] + Dist[1/(a^2 + b^2), Int[(a + b*Ta
n[e + f*x])^(m + 1)*Simp[a*c^2 + 2*b*c*d - a*d^2 - (b*c^2 - 2*a*c*d - b*d^2)*Tan[e + f*x], x], x], x] /; FreeQ
[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && LtQ[m, -1] && NeQ[a^2 + b^2, 0]
Rubi steps
\begin {align*} \int \frac {\tan ^2(c+d x)}{(a+b \tan (c+d x))^{5/2}} \, dx &=-\frac {2 a^2}{3 b \left (a^2+b^2\right ) d (a+b \tan (c+d x))^{3/2}}+\frac {\int \frac {-a+b \tan (c+d x)}{(a+b \tan (c+d x))^{3/2}} \, dx}{a^2+b^2}\\ &=-\frac {2 a^2}{3 b \left (a^2+b^2\right ) d (a+b \tan (c+d x))^{3/2}}+\frac {4 a b}{\left (a^2+b^2\right )^2 d \sqrt {a+b \tan (c+d x)}}+\frac {\int \frac {-a^2+b^2+2 a b \tan (c+d x)}{\sqrt {a+b \tan (c+d x)}} \, dx}{\left (a^2+b^2\right )^2}\\ &=-\frac {2 a^2}{3 b \left (a^2+b^2\right ) d (a+b \tan (c+d x))^{3/2}}+\frac {4 a b}{\left (a^2+b^2\right )^2 d \sqrt {a+b \tan (c+d x)}}-\frac {\int \frac {1+i \tan (c+d x)}{\sqrt {a+b \tan (c+d x)}} \, dx}{2 (a-i b)^2}-\frac {\int \frac {1-i \tan (c+d x)}{\sqrt {a+b \tan (c+d x)}} \, dx}{2 (a+i b)^2}\\ &=-\frac {2 a^2}{3 b \left (a^2+b^2\right ) d (a+b \tan (c+d x))^{3/2}}+\frac {4 a b}{\left (a^2+b^2\right )^2 d \sqrt {a+b \tan (c+d x)}}-\frac {i \text {Subst}\left (\int \frac {1}{(-1+x) \sqrt {a-i b x}} \, dx,x,i \tan (c+d x)\right )}{2 (a-i b)^2 d}+\frac {i \text {Subst}\left (\int \frac {1}{(-1+x) \sqrt {a+i b x}} \, dx,x,-i \tan (c+d x)\right )}{2 (a+i b)^2 d}\\ &=-\frac {2 a^2}{3 b \left (a^2+b^2\right ) d (a+b \tan (c+d x))^{3/2}}+\frac {4 a b}{\left (a^2+b^2\right )^2 d \sqrt {a+b \tan (c+d x)}}+\frac {\text {Subst}\left (\int \frac {1}{-1-\frac {i a}{b}+\frac {i x^2}{b}} \, dx,x,\sqrt {a+b \tan (c+d x)}\right )}{(a-i b)^2 b d}+\frac {\text {Subst}\left (\int \frac {1}{-1+\frac {i a}{b}-\frac {i x^2}{b}} \, dx,x,\sqrt {a+b \tan (c+d x)}\right )}{(a+i b)^2 b d}\\ &=\frac {i \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a-i b}}\right )}{(a-i b)^{5/2} d}-\frac {i \tanh ^{-1}\left (\frac {\sqrt {a+b \tan (c+d x)}}{\sqrt {a+i b}}\right )}{(a+i b)^{5/2} d}-\frac {2 a^2}{3 b \left (a^2+b^2\right ) d (a+b \tan (c+d x))^{3/2}}+\frac {4 a b}{\left (a^2+b^2\right )^2 d \sqrt {a+b \tan (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.18, size = 122, normalized size = 0.78 \begin {gather*} \frac {b (-i a+b) \, _2F_1\left (-\frac {3}{2},1;-\frac {1}{2};\frac {a+b \tan (c+d x)}{a-i b}\right )-(a-i b) \left (2 a+2 i b-i b \, _2F_1\left (-\frac {3}{2},1;-\frac {1}{2};\frac {a+b \tan (c+d x)}{a+i b}\right )\right )}{3 b \left (a^2+b^2\right ) d (a+b \tan (c+d x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
Integrate[Tan[c + d*x]^2/(a + b*Tan[c + d*x])^(5/2),x]
[Out]
(b*((-I)*a + b)*Hypergeometric2F1[-3/2, 1, -1/2, (a + b*Tan[c + d*x])/(a - I*b)] - (a - I*b)*(2*a + (2*I)*b -
I*b*Hypergeometric2F1[-3/2, 1, -1/2, (a + b*Tan[c + d*x])/(a + I*b)]))/(3*b*(a^2 + b^2)*d*(a + b*Tan[c + d*x])
^(3/2))
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(966\) vs.
\(2(133)=266\).
time = 0.15, size = 967, normalized size = 6.16
| | |
method |
result |
size |
| | |
derivativedivides |
\(\frac {-\frac {2 b^{2} \left (\frac {\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, b^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{5}+2 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{3} b^{2}+3 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a \,b^{4}\right ) \ln \left (b \tan \left (d x +c \right )+a +\sqrt {a +b \tan \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}+\sqrt {a^{2}+b^{2}}\right )}{2}+\frac {2 \left (6 a^{4} b^{2}+4 a^{2} b^{4}-2 b^{6}-\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, b^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{5}+2 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{3} b^{2}+3 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a \,b^{4}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{2}\right ) \arctan \left (\frac {2 \sqrt {a +b \tan \left (d x +c \right )}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right )}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}}{4 b^{2} \left (a^{2}+b^{2}\right )^{\frac {3}{2}}}+\frac {-\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, b^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{5}+2 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{3} b^{2}+3 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a \,b^{4}\right ) \ln \left (-b \tan \left (d x +c \right )-a +\sqrt {a +b \tan \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-\sqrt {a^{2}+b^{2}}\right )}{2}+\frac {2 \left (-6 a^{4} b^{2}-4 a^{2} b^{4}+2 b^{6}+\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, b^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{5}+2 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{3} b^{2}+3 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a \,b^{4}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{2}\right ) \arctan \left (\frac {-2 \sqrt {a +b \tan \left (d x +c \right )}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right )}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}}{4 b^{2} \left (a^{2}+b^{2}\right )^{\frac {3}{2}}}\right )}{\left (a^{2}+b^{2}\right )^{2}}-\frac {2 a^{2}}{3 \left (a^{2}+b^{2}\right ) \left (a +b \tan \left (d x +c \right )\right )^{\frac {3}{2}}}+\frac {4 a \,b^{2}}{\left (a^{2}+b^{2}\right )^{2} \sqrt {a +b \tan \left (d x +c \right )}}}{b d}\) |
\(967\) |
default |
\(\frac {-\frac {2 b^{2} \left (\frac {\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, b^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{5}+2 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{3} b^{2}+3 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a \,b^{4}\right ) \ln \left (b \tan \left (d x +c \right )+a +\sqrt {a +b \tan \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}+\sqrt {a^{2}+b^{2}}\right )}{2}+\frac {2 \left (6 a^{4} b^{2}+4 a^{2} b^{4}-2 b^{6}-\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, b^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{5}+2 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{3} b^{2}+3 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a \,b^{4}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{2}\right ) \arctan \left (\frac {2 \sqrt {a +b \tan \left (d x +c \right )}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right )}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}}{4 b^{2} \left (a^{2}+b^{2}\right )^{\frac {3}{2}}}+\frac {-\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, b^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{5}+2 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{3} b^{2}+3 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a \,b^{4}\right ) \ln \left (-b \tan \left (d x +c \right )-a +\sqrt {a +b \tan \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-\sqrt {a^{2}+b^{2}}\right )}{2}+\frac {2 \left (-6 a^{4} b^{2}-4 a^{2} b^{4}+2 b^{6}+\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, b^{4}-\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{5}+2 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{3} b^{2}+3 \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a \,b^{4}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{2}\right ) \arctan \left (\frac {-2 \sqrt {a +b \tan \left (d x +c \right )}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right )}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}}{4 b^{2} \left (a^{2}+b^{2}\right )^{\frac {3}{2}}}\right )}{\left (a^{2}+b^{2}\right )^{2}}-\frac {2 a^{2}}{3 \left (a^{2}+b^{2}\right ) \left (a +b \tan \left (d x +c \right )\right )^{\frac {3}{2}}}+\frac {4 a \,b^{2}}{\left (a^{2}+b^{2}\right )^{2} \sqrt {a +b \tan \left (d x +c \right )}}}{b d}\) |
\(967\) |
| | |
|
|
|
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(tan(d*x+c)^2/(a+b*tan(d*x+c))^(5/2),x,method=_RETURNVERBOSE)
[Out]
2/d/b*(-b^2/(a^2+b^2)^2*(1/4/b^2/(a^2+b^2)^(3/2)*(1/2*((2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a^4-(2*(a
^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*b^4-(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a^5+2*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)
*a^3*b^2+3*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a*b^4)*ln(b*tan(d*x+c)+a+(a+b*tan(d*x+c))^(1/2)*(2*(a^2+b^2)^(1/2)+2*
a)^(1/2)+(a^2+b^2)^(1/2))+2*(6*a^4*b^2+4*a^2*b^4-2*b^6-1/2*((2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a^4-
(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*b^4-(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a^5+2*(2*(a^2+b^2)^(1/2)+2*a)^
(1/2)*a^3*b^2+3*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a*b^4)*(2*(a^2+b^2)^(1/2)+2*a)^(1/2))/(2*(a^2+b^2)^(1/2)-2*a)^(1
/2)*arctan((2*(a+b*tan(d*x+c))^(1/2)+(2*(a^2+b^2)^(1/2)+2*a)^(1/2))/(2*(a^2+b^2)^(1/2)-2*a)^(1/2)))+1/4/b^2/(a
^2+b^2)^(3/2)*(-1/2*((2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a^4-(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)
^(1/2)*b^4-(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a^5+2*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a^3*b^2+3*(2*(a^2+b^2)^(1/2)+2*a)
^(1/2)*a*b^4)*ln(-b*tan(d*x+c)-a+(a+b*tan(d*x+c))^(1/2)*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)-(a^2+b^2)^(1/2))+2*(-6*a
^4*b^2-4*a^2*b^4+2*b^6+1/2*((2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a^4-(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a
^2+b^2)^(1/2)*b^4-(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a^5+2*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a^3*b^2+3*(2*(a^2+b^2)^(1/
2)+2*a)^(1/2)*a*b^4)*(2*(a^2+b^2)^(1/2)+2*a)^(1/2))/(2*(a^2+b^2)^(1/2)-2*a)^(1/2)*arctan((-2*(a+b*tan(d*x+c))^
(1/2)+(2*(a^2+b^2)^(1/2)+2*a)^(1/2))/(2*(a^2+b^2)^(1/2)-2*a)^(1/2))))-1/3*a^2/(a^2+b^2)/(a+b*tan(d*x+c))^(3/2)
+2*a*b^2/(a^2+b^2)^2/(a+b*tan(d*x+c))^(1/2))
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(tan(d*x+c)^2/(a+b*tan(d*x+c))^(5/2),x, algorithm="maxima")
[Out]
integrate(tan(d*x + c)^2/(b*tan(d*x + c) + a)^(5/2), x)
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 9804 vs.
\(2 (127) = 254\).
time = 1.61, size = 9804, normalized size = 62.45 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(tan(d*x+c)^2/(a+b*tan(d*x+c))^(5/2),x, algorithm="fricas")
[Out]
-1/12*(12*sqrt(2)*((a^18*b + a^16*b^3 - 20*a^14*b^5 - 84*a^12*b^7 - 154*a^10*b^9 - 154*a^8*b^11 - 84*a^6*b^13
- 20*a^4*b^15 + a^2*b^17 + b^19)*d^5*cos(d*x + c)^4 + 2*(3*a^16*b^3 + 20*a^14*b^5 + 56*a^12*b^7 + 84*a^10*b^9
+ 70*a^8*b^11 + 28*a^6*b^13 - 4*a^2*b^17 - b^19)*d^5*cos(d*x + c)^2 + (a^14*b^5 + 7*a^12*b^7 + 21*a^10*b^9 + 3
5*a^8*b^11 + 35*a^6*b^13 + 21*a^4*b^15 + 7*a^2*b^17 + b^19)*d^5 + 4*((a^17*b^2 + 6*a^15*b^4 + 14*a^13*b^6 + 14
*a^11*b^8 - 14*a^7*b^12 - 14*a^5*b^14 - 6*a^3*b^16 - a*b^18)*d^5*cos(d*x + c)^3 + (a^15*b^4 + 7*a^13*b^6 + 21*
a^11*b^8 + 35*a^9*b^10 + 35*a^7*b^12 + 21*a^5*b^14 + 7*a^3*b^16 + a*b^18)*d^5*cos(d*x + c))*sin(d*x + c))*sqrt
((a^10 + 5*a^8*b^2 + 10*a^6*b^4 + 10*a^4*b^6 + 5*a^2*b^8 + b^10 + (a^15 - 5*a^13*b^2 - 35*a^11*b^4 - 65*a^9*b^
6 - 45*a^7*b^8 + a^5*b^10 + 15*a^3*b^12 + 5*a*b^14)*d^2*sqrt(1/((a^10 + 5*a^8*b^2 + 10*a^6*b^4 + 10*a^4*b^6 +
5*a^2*b^8 + b^10)*d^4)))/(25*a^8*b^2 - 100*a^6*b^4 + 110*a^4*b^6 - 20*a^2*b^8 + b^10))*sqrt((25*a^8*b^2 - 100*
a^6*b^4 + 110*a^4*b^6 - 20*a^2*b^8 + b^10)/((a^20 + 10*a^18*b^2 + 45*a^16*b^4 + 120*a^14*b^6 + 210*a^12*b^8 +
252*a^10*b^10 + 210*a^8*b^12 + 120*a^6*b^14 + 45*a^4*b^16 + 10*a^2*b^18 + b^20)*d^4))*(1/((a^10 + 5*a^8*b^2 +
10*a^6*b^4 + 10*a^4*b^6 + 5*a^2*b^8 + b^10)*d^4))^(3/4)*arctan(((5*a^20 + 30*a^18*b^2 + 61*a^16*b^4 + 8*a^14*b
^6 - 182*a^12*b^8 - 364*a^10*b^10 - 350*a^8*b^12 - 184*a^6*b^14 - 47*a^4*b^16 - 2*a^2*b^18 + b^20)*d^4*sqrt((2
5*a^8*b^2 - 100*a^6*b^4 + 110*a^4*b^6 - 20*a^2*b^8 + b^10)/((a^20 + 10*a^18*b^2 + 45*a^16*b^4 + 120*a^14*b^6 +
210*a^12*b^8 + 252*a^10*b^10 + 210*a^8*b^12 + 120*a^6*b^14 + 45*a^4*b^16 + 10*a^2*b^18 + b^20)*d^4))*sqrt(1/(
(a^10 + 5*a^8*b^2 + 10*a^6*b^4 + 10*a^4*b^6 + 5*a^2*b^8 + b^10)*d^4)) + (5*a^15 + 15*a^13*b^2 + a^11*b^4 - 45*
a^9*b^6 - 65*a^7*b^8 - 35*a^5*b^10 - 5*a^3*b^12 + a*b^14)*d^2*sqrt((25*a^8*b^2 - 100*a^6*b^4 + 110*a^4*b^6 - 2
0*a^2*b^8 + b^10)/((a^20 + 10*a^18*b^2 + 45*a^16*b^4 + 120*a^14*b^6 + 210*a^12*b^8 + 252*a^10*b^10 + 210*a^8*b
^12 + 120*a^6*b^14 + 45*a^4*b^16 + 10*a^2*b^18 + b^20)*d^4)) - sqrt(2)*((3*a^22 + 29*a^20*b^2 + 125*a^18*b^4 +
315*a^16*b^6 + 510*a^14*b^8 + 546*a^12*b^10 + 378*a^10*b^12 + 150*a^8*b^14 + 15*a^6*b^16 - 15*a^4*b^18 - 7*a^
2*b^20 - b^22)*d^7*sqrt((25*a^8*b^2 - 100*a^6*b^4 + 110*a^4*b^6 - 20*a^2*b^8 + b^10)/((a^20 + 10*a^18*b^2 + 45
*a^16*b^4 + 120*a^14*b^6 + 210*a^12*b^8 + 252*a^10*b^10 + 210*a^8*b^12 + 120*a^6*b^14 + 45*a^4*b^16 + 10*a^2*b
^18 + b^20)*d^4))*sqrt(1/((a^10 + 5*a^8*b^2 + 10*a^6*b^4 + 10*a^4*b^6 + 5*a^2*b^8 + b^10)*d^4)) + 2*(a^17 + 8*
a^15*b^2 + 28*a^13*b^4 + 56*a^11*b^6 + 70*a^9*b^8 + 56*a^7*b^10 + 28*a^5*b^12 + 8*a^3*b^14 + a*b^16)*d^5*sqrt(
(25*a^8*b^2 - 100*a^6*b^4 + 110*a^4*b^6 - 20*a^2*b^8 + b^10)/((a^20 + 10*a^18*b^2 + 45*a^16*b^4 + 120*a^14*b^6
+ 210*a^12*b^8 + 252*a^10*b^10 + 210*a^8*b^12 + 120*a^6*b^14 + 45*a^4*b^16 + 10*a^2*b^18 + b^20)*d^4)))*sqrt(
(a^10 + 5*a^8*b^2 + 10*a^6*b^4 + 10*a^4*b^6 + 5*a^2*b^8 + b^10 + (a^15 - 5*a^13*b^2 - 35*a^11*b^4 - 65*a^9*b^6
- 45*a^7*b^8 + a^5*b^10 + 15*a^3*b^12 + 5*a*b^14)*d^2*sqrt(1/((a^10 + 5*a^8*b^2 + 10*a^6*b^4 + 10*a^4*b^6 + 5
*a^2*b^8 + b^10)*d^4)))/(25*a^8*b^2 - 100*a^6*b^4 + 110*a^4*b^6 - 20*a^2*b^8 + b^10))*sqrt(((25*a^14*b^2 - 25*
a^12*b^4 - 115*a^10*b^6 + 35*a^8*b^8 + 171*a^6*b^10 + 53*a^4*b^12 - 17*a^2*b^14 + b^16)*d^2*sqrt(1/((a^10 + 5*
a^8*b^2 + 10*a^6*b^4 + 10*a^4*b^6 + 5*a^2*b^8 + b^10)*d^4))*cos(d*x + c) + sqrt(2)*(2*(25*a^15*b^3 - 25*a^13*b
^5 - 115*a^11*b^7 + 35*a^9*b^9 + 171*a^7*b^11 + 53*a^5*b^13 - 17*a^3*b^15 + a*b^17)*d^3*sqrt(1/((a^10 + 5*a^8*
b^2 + 10*a^6*b^4 + 10*a^4*b^6 + 5*a^2*b^8 + b^10)*d^4))*cos(d*x + c) + (75*a^10*b^3 - 325*a^8*b^5 + 430*a^6*b^
7 - 170*a^4*b^9 + 23*a^2*b^11 - b^13)*d*cos(d*x + c))*sqrt((a^10 + 5*a^8*b^2 + 10*a^6*b^4 + 10*a^4*b^6 + 5*a^2
*b^8 + b^10 + (a^15 - 5*a^13*b^2 - 35*a^11*b^4 - 65*a^9*b^6 - 45*a^7*b^8 + a^5*b^10 + 15*a^3*b^12 + 5*a*b^14)*
d^2*sqrt(1/((a^10 + 5*a^8*b^2 + 10*a^6*b^4 + 10*a^4*b^6 + 5*a^2*b^8 + b^10)*d^4)))/(25*a^8*b^2 - 100*a^6*b^4 +
110*a^4*b^6 - 20*a^2*b^8 + b^10))*sqrt((a*cos(d*x + c) + b*sin(d*x + c))/cos(d*x + c))*(1/((a^10 + 5*a^8*b^2
+ 10*a^6*b^4 + 10*a^4*b^6 + 5*a^2*b^8 + b^10)*d^4))^(1/4) + (25*a^9*b^2 - 100*a^7*b^4 + 110*a^5*b^6 - 20*a^3*b
^8 + a*b^10)*cos(d*x + c) + (25*a^8*b^3 - 100*a^6*b^5 + 110*a^4*b^7 - 20*a^2*b^9 + b^11)*sin(d*x + c))/cos(d*x
+ c))*(1/((a^10 + 5*a^8*b^2 + 10*a^6*b^4 + 10*a^4*b^6 + 5*a^2*b^8 + b^10)*d^4))^(3/4) + sqrt(2)*((15*a^26*b +
115*a^24*b^3 + 338*a^22*b^5 + 354*a^20*b^7 - 475*a^18*b^9 - 2055*a^16*b^11 - 3060*a^14*b^13 - 2484*a^12*b^15
- 1047*a^10*b^17 - 75*a^8*b^19 + 130*a^6*b^21 + 50*a^4*b^23 + 3*a^2*b^25 - b^27)*d^7*sqrt((25*a^8*b^2 - 100*a^
6*b^4 + 110*a^4*b^6 - 20*a^2*b^8 + b^10)/((a^20 + 10*a^18*b^2 + 45*a^16*b^4 + 120*a^14*b^6 + 210*a^12*b^8 + 25
2*a^10*b^10 + 210*a^8*b^12 + 120*a^6*b^14 + 45*a^4*b^16 + 10*a^2*b^18 + b^20)*d^4))*sqrt(1/((a^10 + 5*a^8*b^2
+ 10*a^6*b^4 + 10*a^4*b^6 + 5*a^2*b^8 + b^10)*d^4)) + 2*(5*a^21*b + 30*a^19*b^3 + 61*a^17*b^5 + 8*a^15*b^7 - 1
82*a^13*b^9 - 364*a^11*b^11 - 350*a^9*b^13 - 18...
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\tan ^{2}{\left (c + d x \right )}}{\left (a + b \tan {\left (c + d x \right )}\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(tan(d*x+c)**2/(a+b*tan(d*x+c))**(5/2),x)
[Out]
Integral(tan(c + d*x)**2/(a + b*tan(c + d*x))**(5/2), x)
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(tan(d*x+c)^2/(a+b*tan(d*x+c))^(5/2),x, algorithm="giac")
[Out]
Timed out
________________________________________________________________________________________
Mupad [B]
time = 8.46, size = 2500, normalized size = 15.92 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(tan(c + d*x)^2/(a + b*tan(c + d*x))^(5/2),x)
[Out]
(log(((-1/(a^5*d^2 - b^5*d^2*1i + 5*a*b^4*d^2 - a^4*b*d^2*5i + a^2*b^3*d^2*10i - 10*a^3*b^2*d^2))^(1/2)*(((-1/
(a^5*d^2 - b^5*d^2*1i + 5*a*b^4*d^2 - a^4*b*d^2*5i + a^2*b^3*d^2*10i - 10*a^3*b^2*d^2))^(1/2)*(896*a^6*b^15*d^
4 - 160*a^2*b^19*d^4 - 128*a^4*b^17*d^4 - 32*b^21*d^4 + 3136*a^8*b^13*d^4 + 4928*a^10*b^11*d^4 + 4480*a^12*b^9
*d^4 + 2432*a^14*b^7*d^4 + 736*a^16*b^5*d^4 + 96*a^18*b^3*d^4 - ((-1/(a^5*d^2 - b^5*d^2*1i + 5*a*b^4*d^2 - a^4
*b*d^2*5i + a^2*b^3*d^2*10i - 10*a^3*b^2*d^2))^(1/2)*(a + b*tan(c + d*x))^(1/2)*(64*a*b^22*d^5 + 640*a^3*b^20*
d^5 + 2880*a^5*b^18*d^5 + 7680*a^7*b^16*d^5 + 13440*a^9*b^14*d^5 + 16128*a^11*b^12*d^5 + 13440*a^13*b^10*d^5 +
7680*a^15*b^8*d^5 + 2880*a^17*b^6*d^5 + 640*a^19*b^4*d^5 + 64*a^21*b^2*d^5))/2))/2 + (a + b*tan(c + d*x))^(1/
2)*(320*a^4*b^14*d^3 - 16*b^18*d^3 + 1024*a^6*b^12*d^3 + 1440*a^8*b^10*d^3 + 1024*a^10*b^8*d^3 + 320*a^12*b^6*
d^3 - 16*a^16*b^2*d^3)))/2 - 16*a*b^15*d^2 - 96*a^3*b^13*d^2 - 240*a^5*b^11*d^2 - 320*a^7*b^9*d^2 - 240*a^9*b^
7*d^2 - 96*a^11*b^5*d^2 - 16*a^13*b^3*d^2)*(-1/(a^5*d^2 - b^5*d^2*1i + 5*a*b^4*d^2 - a^4*b*d^2*5i + a^2*b^3*d^
2*10i - 10*a^3*b^2*d^2))^(1/2))/2 - log(((-1/(4*(a^5*d^2 - b^5*d^2*1i + 5*a*b^4*d^2 - a^4*b*d^2*5i + a^2*b^3*d
^2*10i - 10*a^3*b^2*d^2)))^(1/2)*(896*a^6*b^15*d^4 - 160*a^2*b^19*d^4 - 128*a^4*b^17*d^4 - 32*b^21*d^4 + 3136*
a^8*b^13*d^4 + 4928*a^10*b^11*d^4 + 4480*a^12*b^9*d^4 + 2432*a^14*b^7*d^4 + 736*a^16*b^5*d^4 + 96*a^18*b^3*d^4
+ (-1/(4*(a^5*d^2 - b^5*d^2*1i + 5*a*b^4*d^2 - a^4*b*d^2*5i + a^2*b^3*d^2*10i - 10*a^3*b^2*d^2)))^(1/2)*(a +
b*tan(c + d*x))^(1/2)*(64*a*b^22*d^5 + 640*a^3*b^20*d^5 + 2880*a^5*b^18*d^5 + 7680*a^7*b^16*d^5 + 13440*a^9*b^
14*d^5 + 16128*a^11*b^12*d^5 + 13440*a^13*b^10*d^5 + 7680*a^15*b^8*d^5 + 2880*a^17*b^6*d^5 + 640*a^19*b^4*d^5
+ 64*a^21*b^2*d^5)) - (a + b*tan(c + d*x))^(1/2)*(320*a^4*b^14*d^3 - 16*b^18*d^3 + 1024*a^6*b^12*d^3 + 1440*a^
8*b^10*d^3 + 1024*a^10*b^8*d^3 + 320*a^12*b^6*d^3 - 16*a^16*b^2*d^3))*(-1/(4*(a^5*d^2 - b^5*d^2*1i + 5*a*b^4*d
^2 - a^4*b*d^2*5i + a^2*b^3*d^2*10i - 10*a^3*b^2*d^2)))^(1/2) - 16*a*b^15*d^2 - 96*a^3*b^13*d^2 - 240*a^5*b^11
*d^2 - 320*a^7*b^9*d^2 - 240*a^9*b^7*d^2 - 96*a^11*b^5*d^2 - 16*a^13*b^3*d^2)*(-1/(4*(a^5*d^2 - b^5*d^2*1i + 5
*a*b^4*d^2 - a^4*b*d^2*5i + a^2*b^3*d^2*10i - 10*a^3*b^2*d^2)))^(1/2) - atan((((-1i/(4*(a^5*d^2*1i - b^5*d^2 +
a*b^4*d^2*5i - 5*a^4*b*d^2 + 10*a^2*b^3*d^2 - a^3*b^2*d^2*10i)))^(1/2)*(896*a^6*b^15*d^4 - 160*a^2*b^19*d^4 -
128*a^4*b^17*d^4 - 32*b^21*d^4 + 3136*a^8*b^13*d^4 + 4928*a^10*b^11*d^4 + 4480*a^12*b^9*d^4 + 2432*a^14*b^7*d
^4 + 736*a^16*b^5*d^4 + 96*a^18*b^3*d^4 + (-1i/(4*(a^5*d^2*1i - b^5*d^2 + a*b^4*d^2*5i - 5*a^4*b*d^2 + 10*a^2*
b^3*d^2 - a^3*b^2*d^2*10i)))^(1/2)*(a + b*tan(c + d*x))^(1/2)*(64*a*b^22*d^5 + 640*a^3*b^20*d^5 + 2880*a^5*b^1
8*d^5 + 7680*a^7*b^16*d^5 + 13440*a^9*b^14*d^5 + 16128*a^11*b^12*d^5 + 13440*a^13*b^10*d^5 + 7680*a^15*b^8*d^5
+ 2880*a^17*b^6*d^5 + 640*a^19*b^4*d^5 + 64*a^21*b^2*d^5)) - (a + b*tan(c + d*x))^(1/2)*(320*a^4*b^14*d^3 - 1
6*b^18*d^3 + 1024*a^6*b^12*d^3 + 1440*a^8*b^10*d^3 + 1024*a^10*b^8*d^3 + 320*a^12*b^6*d^3 - 16*a^16*b^2*d^3))*
(-1i/(4*(a^5*d^2*1i - b^5*d^2 + a*b^4*d^2*5i - 5*a^4*b*d^2 + 10*a^2*b^3*d^2 - a^3*b^2*d^2*10i)))^(1/2)*1i - ((
-1i/(4*(a^5*d^2*1i - b^5*d^2 + a*b^4*d^2*5i - 5*a^4*b*d^2 + 10*a^2*b^3*d^2 - a^3*b^2*d^2*10i)))^(1/2)*(896*a^6
*b^15*d^4 - 160*a^2*b^19*d^4 - 128*a^4*b^17*d^4 - 32*b^21*d^4 + 3136*a^8*b^13*d^4 + 4928*a^10*b^11*d^4 + 4480*
a^12*b^9*d^4 + 2432*a^14*b^7*d^4 + 736*a^16*b^5*d^4 + 96*a^18*b^3*d^4 - (-1i/(4*(a^5*d^2*1i - b^5*d^2 + a*b^4*
d^2*5i - 5*a^4*b*d^2 + 10*a^2*b^3*d^2 - a^3*b^2*d^2*10i)))^(1/2)*(a + b*tan(c + d*x))^(1/2)*(64*a*b^22*d^5 + 6
40*a^3*b^20*d^5 + 2880*a^5*b^18*d^5 + 7680*a^7*b^16*d^5 + 13440*a^9*b^14*d^5 + 16128*a^11*b^12*d^5 + 13440*a^1
3*b^10*d^5 + 7680*a^15*b^8*d^5 + 2880*a^17*b^6*d^5 + 640*a^19*b^4*d^5 + 64*a^21*b^2*d^5)) + (a + b*tan(c + d*x
))^(1/2)*(320*a^4*b^14*d^3 - 16*b^18*d^3 + 1024*a^6*b^12*d^3 + 1440*a^8*b^10*d^3 + 1024*a^10*b^8*d^3 + 320*a^1
2*b^6*d^3 - 16*a^16*b^2*d^3))*(-1i/(4*(a^5*d^2*1i - b^5*d^2 + a*b^4*d^2*5i - 5*a^4*b*d^2 + 10*a^2*b^3*d^2 - a^
3*b^2*d^2*10i)))^(1/2)*1i)/(32*a*b^15*d^2 - ((-1i/(4*(a^5*d^2*1i - b^5*d^2 + a*b^4*d^2*5i - 5*a^4*b*d^2 + 10*a
^2*b^3*d^2 - a^3*b^2*d^2*10i)))^(1/2)*(896*a^6*b^15*d^4 - 160*a^2*b^19*d^4 - 128*a^4*b^17*d^4 - 32*b^21*d^4 +
3136*a^8*b^13*d^4 + 4928*a^10*b^11*d^4 + 4480*a^12*b^9*d^4 + 2432*a^14*b^7*d^4 + 736*a^16*b^5*d^4 + 96*a^18*b^
3*d^4 - (-1i/(4*(a^5*d^2*1i - b^5*d^2 + a*b^4*d^2*5i - 5*a^4*b*d^2 + 10*a^2*b^3*d^2 - a^3*b^2*d^2*10i)))^(1/2)
*(a + b*tan(c + d*x))^(1/2)*(64*a*b^22*d^5 + 640*a^3*b^20*d^5 + 2880*a^5*b^18*d^5 + 7680*a^7*b^16*d^5 + 13440*
a^9*b^14*d^5 + 16128*a^11*b^12*d^5 + 13440*a^13*b^10*d^5 + 7680*a^15*b^8*d^5 + 2880*a^17*b^6*d^5 + 640*a^19*b^
4*d^5 + 64*a^21*b^2*d^5)) + (a + b*tan(c + d*x))^(1/2)*(320*a^4*b^14*d^3 - 16*b^18*d^3 + 1024*a^6*b^12*d^3 + 1
440*a^8*b^10*d^3 + 1024*a^10*b^8*d^3 + 320*a^12*b^6*d^3 - 16*a^16*b^2*d^3))*(-1i/(4*(a^5*d^2*1i - b^5*d^2 + a*
b^4*d^2*5i - 5*a^4*b*d^2 + 10*a^2*b^3*d^2 - a^3...
________________________________________________________________________________________